//
//  WBEnvironmentManager.h
//  WeatherBar
//
//  Created by Bert on 2024/6/7.
//

#import <Foundation/Foundation.h>
#import "WBEnvironment.h"

NS_ASSUME_NONNULL_BEGIN
/// 发布区域版本 0：国内版 1：国际版
typedef NS_ENUM(NSUInteger,AppEnvironmentAreaType) {
    /// 国内版
    AppEnvironmentAreaTypeChina = 0,
    /// 国际版
    AppEnvironmentAreaTypeGlobal = 1,
};
/// 运行环境 0：测试 1：内部生产 2：预appstore生产

typedef NS_ENUM(NSUInteger,AppEnvironmentType) {
    /// 测试
    AppEnvironmentTypeTest = 0,
    /// 预发布
    AppEnvironmentTypePreProduct = 1,
    /// 内部生产
    AppEnvironmentTypeInnerProduction = 2,
    /// appstore生产
    AppEnvironmentTypeProduction = 3,
};
/// 渠道类型
typedef NS_ENUM(NSUInteger,AppChannelType) {
    /// 通过 fir 下载
    AppChannelTypeTest,
    /// 通过 fir 下载
    AppChannelTypeInnerProduct,
    /// 通过 AppStore 下载
    AppChannelTypeAppStore
};

typedef void(^WBShowUpdateAlertViewBlock)();

@interface WBEnvironmentManager : NSObject
/// 环境参数
@property (nonatomic, strong, readonly) WBEnvironment *environmentSetting;
/// 区域版本  国内 全球
@property (nonatomic, assign) AppEnvironmentAreaType areaType;
/// 运行环境
@property (nonatomic, assign) AppEnvironmentType environmentType;
// app安装渠道
@property (nonatomic, assign) AppChannelType channelType;
/// 全局请求的 url
@property (nonatomic, copy, readonly) NSString *environmentUrl;
/// H5的 baseurl
@property (nonatomic, copy, readonly) NSString *environmentH5Url;
/// 联通统一认证服务条款url
@property (nonatomic, copy, readonly) NSString *certificateServicesUrl;
/// 隐私政策
@property (nonatomic, copy, readonly) NSString *privacyPolicyUrl;
/// 用户服务协议
@property (nonatomic, copy, readonly) NSString *userAgreementUrl;

/// 统计的url
@property (nonatomic, copy, readonly) NSString *logBaseUrl;
/// 翻译的网关
@property (nonatomic, copy, readonly) NSString *translateGateWay;
/// 下载图片的baseUrl
@property (nonatomic, copy, readonly) NSString *imageBaseUrl;
+ (instancetype)shareManager;

- (void)checkVersoinShowUpdateAlertView:(WBShowUpdateAlertViewBlock)block;
@end

NS_ASSUME_NONNULL_END
